package com.yanjin.test.presenter;

import android.view.View;

import com.yanjin.test.module.LoaderMessageModuleImp;
import com.yanjin.test.view.LoaderMessageView;

/**
 * Created by Sigthp-P-Department on 2018/6/15.
 */

public class LoaderMessagePresenterImp<V> extends BasePresenter<V>{
    private final LoaderMessageModuleImp moduleImp;
    private final LoaderMessageView mView;

    public LoaderMessagePresenterImp(V view){
        moduleImp = new LoaderMessageModuleImp();
        mView = (LoaderMessageView) view;
    }
    public void getMessage(){
        mView.onStartGet();
        String message = moduleImp.getMessage();
        mView.onFinish(message);
    }
}
